package com.sxl.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.sxl.domain.Message;
import com.sxl.service.MessageService;
import com.sxl.mapper.MessageMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author xue
* @description 针对表【message】的数据库操作Service实现
* @createDate 2022-05-02 14:25:16
*/
@Service
public class MessageServiceImpl extends ServiceImpl<MessageMapper, Message>
    implements MessageService{
    @Autowired
    private MessageMapper messageMapper;
    @Override
    public List<Message> selectAllByReceiverId(Message message) {
        return messageMapper.selectAllByReceiverId(message);
    }

    @Override
    public int getCount(Message message) {
        return messageMapper.getCount(message);
    }
}




